$(document).ready(function(){

	/*
	$('#showDeptDown').click(function (){
		$('#detailTR').removeClass('noned');
		$('#detailTR').addClass('blockd');
		$(this).removeClass('blockd');
		$(this).addClass('noned');
		$('#showDeptUp').removeClass('noned');
		$('#showDeptUp').addClass('blockd');
	});
	$('#showDeptUp').click(function (){
		$('#detailTR').removeClass('blockd');
		$('#detailTR').addClass('noned');
		$(this).removeClass('blockd');
		$(this).addClass('noned');
		$('#showDeptDown').removeClass('noned');
		$('#showDeptDown').addClass('blockd');
	});
	*/
	$('#planRelated').click(function () {				//预案关联
		//lzm/PlanStandard_matchPlan.action?eventID=
		var eventId = $("#eventId").attr("value");
		redirectPage('/ag/lzm/PlanStandard_matchPlan.action?eventID='+eventId);
	});
	
	$('#lawRelated').click(function () {					//法规
		redirectPage('/ag/zhh/content/eventLawMain.jsp');
	});
	$('#expertRelated').click(function () {			//专家
		redirectPage('/ag/zhh/content/eventExpertMain.jsp');
	});
	$('#teamRelated').click(function () {				//应急队伍
		redirectPage('/ag/zhh/content/eventTeamMain.jsp');
	});
	/*
	$('#targetRelated').click(function () {				//防控目标
		redirectPage('/ag/lwc/findtarget.action');
	//	redirectPage('/ag/zhh/content/target.jsp');
	});
	*/
	$('#goodsRelated').click(function () {						//救援物资
		redirectPage('/ag/zhh/content/eventWuzhiMain.jsp');
	});
	
});

function redirectPage(url){
	
	$('#main',window.parent.document).attr("src",url);
}
